function out = upsample_sim(din, factor)

out = imresize(din, factor, 'nearest');